home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / SchemaDoc$10.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.6 KB  |  36 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.DialogFactory;
  4. import com.extensibility.app.UI;
  5. import com.extensibility.xml.URI;
  6. import com.extensibility.xml.URIResolver;
  7. import java.awt.Component;
  8.  
  9. class SchemaDoc$10 implements URIResolver {
  10.    // $FF: synthetic field
  11.    final SchemaDoc this$0;
  12.    URI lastURI;
  13.  
  14.    public URI resolve(URI var1) {
  15.       URI var2 = new URI(this.lastURI, var1.getShortName());
  16.       if (var2.exists()) {
  17.          return var2;
  18.       } else {
  19.          var2 = DialogFactory.askURI((Component)null, this.this$0.getURI(), new String[]{this.this$0.schema.getFlavorName()}, var1.getFullName(), UI.getString("dialog.askURI.prompt.unable.to.locate"));
  20.          if (var2 != null) {
  21.             this.lastURI = var2;
  22.          }
  23.  
  24.          return var2;
  25.       }
  26.    }
  27.  
  28.    public URI resolve(String var1) {
  29.       return this.resolve(new URI(var1));
  30.    }
  31.  
  32.    SchemaDoc$10(SchemaDoc var1) {
  33.       this.this$0 = var1;
  34.    }
  35. }
  36.